package com.rui.study.demo.httpclient.cncbox;

import com.rui.study.demo.httpclient.HttpClient;

/**
 * @program: study
 * @description:
 * @author: Yaowr
 * @create: 2018-11-22 09:59
 **/
public class AdminMgt {

    private static void phoneExists(String phone) {
        String url = "http://172.16.2.140:11000/adminmgt/v1/admin-account/phone/exist?cellPhone=" + phone;
        HttpClient.get(url);
    }

    private static void resetPasswd(String accountId) {
        String url = "http://172.16.2.140:11000/adminmgt/v1/admin-account/reset-pwd/" + accountId;
        HttpClient.get(url);
    }

    private static void loadUserAccount(String identifier) {
        String url = "http://172.16.2.140:11000/usermgt/api/v1/user-account/" + identifier;
        HttpClient.get(url);
    }

    public static void main(String[] args) {
//        phoneExists("15013659191");
//        resetPasswd("yaowr");
        loadUserAccount("yaowr@mpreader.com");
    }
}
